package com.y.controller;


import com.y.entity.Kind;
import com.y.service.KindService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Yjh
 * @since 2021-09-24
 */
@Controller
@RequestMapping("/kind")
public class KindController {

    @Autowired
    KindService kindService;

    @ResponseBody
    @GetMapping("/list")
    public List<Kind> kindList(){
        return kindService.query().eq("status","0").list();
    }

}
